g_num=0

def test1():
    global g_num
    g_num=100
def test2():
    print(g_num)
test1()
test2()
# 


def getLevel(score):
    if score>=90 and score<=100:
        return "A"
    elif score>=80 and score<90:
        return "B"
    elif score>=70 and score<80:
        return "C"
    elif score>=60 and score<70:
        return "D"
    else:
        return "E"

print(getLevel(95))
print(getLevel(78))
print(getLevel(30))
